package cn.school.dao;

        import cn.school.entity.Student;
        import org.apache.ibatis.annotations.Param;

        import java.util.List;
        import java.util.Map;

//xxxMapper
//CUD
//R:分页()
public interface StudentDao {
    public Student get(int stuno);
    /**
     * 只根据sname,qq,telephone模糊查找,按照入学时间(enterStart,和enterEnd)的范围查找
     * 加上按照年级号gradeid的查找...
     * @param m
     * @return
     */
    public List<Student> search(@Param("p") Map<String, Object> m, @Param("pageNo") int pageNo, @Param("pageSize") int pageSize);

    public int searchTotal(@Param("p") Map<String, Object> m);


    public int add(Student s);


    public int update(Student s);

    public int del(long id);


    public List<Map> findScore(long stuno);

    public int checkPhoneRepeat(String phone);
}
